package com.hanxy.admin.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * 系统用户角色实体
 *
 * @author dingyoukun
 * @date 2021-08-26 20:25
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode
@Accessors(chain = true)
@ApiModel(value = "SysUserRole", description = "系统用户角色实体")
@TableName(value = "t_sys_user_role")
public class SysUserRole {

    /**
     * id 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * userId 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * roleId 角色id
     */
    @ApiModelProperty(value = "角色id")
    private Integer roleId;

}
